package com.skt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.skt.manage.mapper.HealthResourcesMapper;
import com.skt.manage.domain.HealthResources;
import com.skt.manage.service.IHealthResourcesService;

/**
 * 健康资讯资源Service业务层处理
 * 
 * @author ffbaby
 * @date 2025-04-14
 */
@Service
public class HealthResourcesServiceImpl implements IHealthResourcesService 
{
    @Autowired
    private HealthResourcesMapper healthResourcesMapper;

    /**
     * 查询健康资讯资源
     * 
     * @param resourceId 健康资讯资源主键
     * @return 健康资讯资源
     */
    @Override
    public HealthResources selectHealthResourcesByResourceId(Long resourceId)
    {
        return healthResourcesMapper.selectHealthResourcesByResourceId(resourceId);
    }

    /**
     * 查询健康资讯资源列表
     * 
     * @param healthResources 健康资讯资源
     * @return 健康资讯资源
     */
    @Override
    public List<HealthResources> selectHealthResourcesList(HealthResources healthResources)
    {
        return healthResourcesMapper.selectHealthResourcesList(healthResources);
    }

    /**
     * 新增健康资讯资源
     * 
     * @param healthResources 健康资讯资源
     * @return 结果
     */
    @Override
    public int insertHealthResources(HealthResources healthResources)
    {
        return healthResourcesMapper.insertHealthResources(healthResources);
    }

    /**
     * 修改健康资讯资源
     * 
     * @param healthResources 健康资讯资源
     * @return 结果
     */
    @Override
    public int updateHealthResources(HealthResources healthResources)
    {
        return healthResourcesMapper.updateHealthResources(healthResources);
    }

    /**
     * 批量删除健康资讯资源
     * 
     * @param resourceIds 需要删除的健康资讯资源主键
     * @return 结果
     */
    @Override
    public int deleteHealthResourcesByResourceIds(Long[] resourceIds)
    {
        return healthResourcesMapper.deleteHealthResourcesByResourceIds(resourceIds);
    }

    /**
     * 删除健康资讯资源信息
     * 
     * @param resourceId 健康资讯资源主键
     * @return 结果
     */
    @Override
    public int deleteHealthResourcesByResourceId(Long resourceId)
    {
        return healthResourcesMapper.deleteHealthResourcesByResourceId(resourceId);
    }
}
